package com.design.decorator.football;

/**
 * @author xiemiao
 * @description adidas装饰
 * @date 2023/08/16
 */
public class AdidasDecorator implements JerseyDecorator {

    private Jersey jersey;

    private String name;

    public AdidasDecorator(Jersey jersey, String name) {
        this.jersey = jersey;
        this.name = name;
    }

    @Override
    public void team() {
        jersey.team();
    }

    @Override
    public void facade() {
        System.out.println("商标:" + name);
        jersey.facade();
    }
}
